package com.mm.fam.auth.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mm.fam.auth.service.ShiroPermissionService;
import com.mm.fam.web.entity.SysPermission;
import com.mm.fam.web.mapper.SysPermissionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShiroPermissionServiceImpl extends ServiceImpl<SysPermissionMapper, SysPermission> implements ShiroPermissionService {

    @Autowired
    private SysPermissionMapper sysPermissionMapper;

    @Override
    public List<SysPermission> getPermissionByUserId(Integer userId) {
        return sysPermissionMapper.getPermissionByUserId(userId);
    }
}
